

** tests

use health/test_daily_panel if date<= mdy(6,10,2020), clear
foreach v in tested positive negative {
	
	
	local replace "" 
	if "`v'" == "tested" local replace "replace"
	
	count if `v'==1 
	scalarout using "scratch/restat_counts.csv", ///
		id("`v'") num(`r(N)') fmt(%10.0fc) `replace'
	
}

use health/inp_clean if ~no_dx & admit_date<= mdy(6,10,2020), clear

count 
scalarout using "scratch/new_counts.csv", ///
	id("admissions") num(`r(N)') fmt(%10.0fc)
	
count  if test_tight==1
scalarout using "scratch/new_counts.csv", ///
	id("admit-test-tight") num(`r(N)') fmt(%10.0fc) 
	
count if pos_tight==1
scalarout using "scratch/new_counts.csv", ///
	id("admit-pos-tight") num(`r(N)') fmt(%10.0fc) 
		
count  if test_late==1
scalarout using "scratch/new_counts.csv", ///
	id("admit-test-restat defn") num(`r(N)') fmt(%10.0fc) 
	
count if pos_late==1
scalarout using "scratch/new_counts.csv", ///
	id("admit-pos-restat defn") num(`r(N)') fmt(%10.0fc) 
	
